# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=plasma-videoplayer
pkgver=0.3_git20200223
pkgrel=3
_commit="5418bde23b89960ebdaa7f86e0830960a1efe1e4"
pkgdesc="Video Player for Plasma Mobile"
url="https://invent.kde.org/jbbgameich/videoplayer"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
license="LGPL-2.1-or-later"
depends="
	kirigami2
	qt5-qtbase-sqlite
	qt5-qtmultimedia
	qt5-qtquickcontrols2
	qtmpris
	"
makedepends="
	extra-cmake-modules
	kdbusaddons5-dev
	kdeclarative5-dev
	ki18n5-dev
	plasma-framework5-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	samurai
	"
source="https://invent.kde.org/jbbgameich/videoplayer/-/archive/$_commit/videoplayer-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/videoplayer-$_commit"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
2f424ec10a0c9ed087cc140b2212bde7b8f906f0e2850ee0afe52f846ce9e05ce441e2406f44dc44008377969d003dde4f2329f9f56a68e0f4b637d670e8c398  videoplayer-5418bde23b89960ebdaa7f86e0830960a1efe1e4.tar.gz
"
